import * as apiService from '@/services/api.js';
import { getUUID } from "@/utils/uuid";

/**
 * 网银支付 {第三方支付}
 * @return {Promise<*[]>}
 */
const imageValidateApi = async({code, uuid = getUUID()}) => {
  const [result, data] = await apiService.post(api.IMAGE_VALIDATE, {
    code,
    uuid
  });

  return [result, data];
};

export {
  imageValidateApi
};
